var express = require("express");
var router = express.Router();
const ProblemController = require("../controller/ProblemController");

//挂载路由

router
  .route("/")
  .post(ProblemController.addProblem)
  .get(ProblemController.getProblem);

router.route("/:id").patch(ProblemController.updateProblem);

module.exports = router;
